package com.ctrip.ec.api.mobile.controller;

import com.ctrip.ec.api.mobile.aop.AuthLogin;
import com.ctrip.ec.biz.dao.app.AppVersionDao;
import com.ctrip.ec.biz.entity.app.AppVersionEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.sql.SQLException;

/**
 * Created by jiangzy on 2018/12/19.
 */
@RestController
@RequestMapping("appVersion")
public class AppVersionController {

    @Autowired
    private AppVersionDao appVersion;

     @GetMapping("latest")
    public AppVersionEntity latest(@RequestParam Integer type) throws SQLException {
        return appVersion.latest(type);
     }

}
